package com.wlz.aop.earlyAop;

import org.aopalliance.intercept.MethodInterceptor;
import org.aopalliance.intercept.MethodInvocation;

/**
 * @author wlz
 * @date 2022-05-28  4:26 下午
 */
public class MyLogInterceptor implements MethodInterceptor {
	@Override
	public Object invoke(MethodInvocation invocation) throws Throwable {

		System.out.println(getClass() + " 调用方法前 。。。。");

		Object proceed = invocation.proceed();

		System.out.println(getClass() + " 调用方法后 。。。。");
		return proceed;
	}
}
